package com.fjh.feign;


import com.fjh.domain.UserAddr;
import com.fjh.feign.hystrix.OrderUserAddrFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "member-service",fallback = OrderUserAddrFeignHystrix.class)
public interface OrderUserAddrFeign {

    /**
     * 远程调用 获取用户的默认收货地址
     *
     * @param userId
     * @return
     */
    @GetMapping("p/address/getUserDefaultAddr")
    UserAddr getUserDefaultAddr(@RequestParam String userId);

}
